Create mainloading.js