Added javascript block in the template for apps to use if they want