Create JS link to history or home page