modularize and minimize the JavaScript files