Fixing broken javascript location