add hash history to js