Bugfix - template1.js contained deprecated code; also set JS strict mode for template1.js