Improved js loading module.