Add js docs and some housekeeping