Fixing edit profile page javascript.