hey tommy,
if the gep code's above didn't solve your problem,
please could you send us the error message that appears,
or if you can debug your JavaScript, this will help more,