- Extract javascript from templates into files (edit page)