Refactoring

Added email alerts, rewrote check.js to be more dynamic, added ‘live
test’ capability, rerouted helper functions to “helpers.js” to keep
check.js lean.