update typeof jQuery to function