modulize js