Creation of links in javascript this post