javascript version
Merge pull request #5 from sotoseattle/js

javascript version