Updated to v4.2.  Removed parseInt usage, consolidated some fcns to single line, added 'use strict', moved logging calls to helper fcns, some style cleanup