Fixed CDN for jquery and tidied up main require code