use defer for jquery and main js