Kyoto Cabinet port to Javascript