simple javascript StringMap class