Improve modloader
Fix profile.js to some extent

This file is still not done yet
Fix indentation