make compatable js file for minification