Able to store values in javascript hash