Add support for JS templates to the GUI

Add UI for JS templates

Remove useless code

restore minify script