Update template.js

added Follow Me functionality