modularized main js