Refactor JS tests

* Move test cases into a separate JS file and add test cases for `NBDiffCell`.
* Create `main.js` to separate nbdiff library code from the main execution.