fixed js bug when inside an iframe