js troubleshooting