JavaScript: conditionally loading jquery