fix jquery error and de-minify templates for development