Fix Hamlet template: remove ending script tag