modularize js