Fixing storage manager - JavaScript Local Storage only stores strings