renamed init_js_and_css to output_js_and_css