add js version
Merge pull request #1 from kitak/js

add js version