Update js to work with short links.