add documentation for JS and building the project

fixes #34