python and js synced

Files all matched in both languages, and tests written for functions in
both.  All tests pass.  Changes logged in cOSModsREADME.