base template to test js code