js for adding tags to the page