Template.getStyle/ScriptTag
made methods more generic