added localStorage save states
Merge pull request #4 from hhuang2088/localStorage_save_state

added localStorage save states