Change JS expressions to also wait for jQuery to be present