Pre-process javascript files