fixed js timing