Update inserter.js

changed a jslint global object to afterEach from beforeEach