Fixing something nasty -- incorrect js