Proper implementations for data() and value() methods + unit tests.
Fix jshint errors.