Add and use alternate_url helper for generating json variants of current URL