Added check if jQuery is present