[js] some inlining for StringMap