Wrong JShint global

The global used is `beforeEach` yet the code uses `before`. This causes the file to fail JShint test.