Fixing bug moving off jQuery