Tags functionality extracted from HTML and helper.js. Now in seperate files - tags.js and tags.html