Doc updates

Added javascript module to docs
Moved tutorial before API reference in the index