Updated Readme and added js documentation comments