Grunt task to convert between module types on Javascript