Let's take a step back and understand automated testing of JavaScript from square one.