Added a very partial javascript style documentation for the api - it's a start