Removed unused main.js script
Change load order for build, add xdom flag to jq.ajax