umd-style modules for js scripts