using require for main js