fix errors for notebook.js and vim-mode.js tests
fix errors for notebook.js and vim-mode.js tests

ScottPJones/beaker-notebook,ScottPJones/beaker-notebook,ScottPJones/beaker-notebook,ScottPJones/beaker-notebook,ScottPJones/beaker-notebook