Implemented templating system. Combined js files