using jsmin.php if no uglifyjs is present
moving require to where it is actually used