Split files into appropriate formats (js etc)