fixed js errors
fixed js errors