Merge pull request #16 from markcarver/master

Fix preprocessData callback bug and wrong $.isPlainObject method name
Add travis task and add scripts object to package.json and bump up bug fix number
bump up package.json version number
Fix undefined error and format code

Moved some variable defines around to fix undefined errors.
Formatted code to follow editorconfig.
Merge pull request #19 from truckingsim/bugfix-log-error

Fix undefined error and format code