Template objects now call getScripts() instead of prepareJavaScript($scriptpath)