When I put that code in, I get the same jumpy issue you are having. I think the “!” is breaking the code somehow.
Nothing else seems to work though. I am continuing to work though this. One thought I am having is to move to straight JQuery. This seems to work but takes some extra time to set-up.