The problem I was having is that if I didn't put this in head then appium-localize wouldn't translate the header because it couldn't find jquery.