Require improvements

Improved require js loading with script data-src and data-main