proper way of initializing jQuery