A simple javascript HashMap implementation to map keys -> values even for objects