The Javascript code needs assertion statements (if they exist) for quick debugging in the future
The Python code can also use more thorough assert statements, and useful print statements for logging purposes
Also if theres a way to do actual unit testing, we should implement it (if it makes sense to do so. It may be like killing a fly with a sledgehammer)