added js docs