Fixing broken javascript reference