Fast and robust stringmap for JavaScript