js adjustment for hash