Fixing javascript links