libhangul javascript porting