spy window.confirm to avoid dialog box when running JS tests
Merge pull request #21 from AdamNowotny/master

js tests - remove alert window