Remove "add_files" helper
Moved JS generation to it's own file, and generated as a string