You should really be using _"use strict";_ to make your life easier in the long run. Whilst it's a harsh mistress, running jslint (https://npmjs.org/package/jslint) can be worth it in the long run.