add documentation for JS and building the project

fixes #34
tweak example
Merge pull request #36 from DataSplice/docs

add documentation for JS and building the project