implemented value.js. all tests pass