Update template.js

edited to work with phantomjs@1.8.1-1 Fixes https://github.com/gruntjs/grunt-lib-phantomjs/issues/17