Javascript changes on pageshow