Bug fixes

- Fixed bug where null values would cause an error.
- Removed `console.log`.
- Cleaned up syntax to stop JSHint from complaining.
- Added underscore as a project build dependency.
- Objects with `undefined` properties are removed.
- Added some more tests.