Move generated JS to its own directory
Correct Makefile for generated JS directory and add template preload