JS code added for hash parsing