link to repost urls and fix js on Heroku