Fix for JS submodules and some documentation.

Added a requirements file and some docs to accompany it.