fixed some issues and added js docs