Fixing javascript.