custom script block in templates