JavaScript implementation of Hanyu Pinyin object