generator: move formTemplate to a seperate file; #90

formTemplate is no valid json but valid javascript; why not load it as a seperate js file!? 
This could by improved by using $.getScript but that would need some restructuring of the code structure.