Clean up + test of value function in HTML

Clean up of debug object in JS and added a test to try out expanded
value function declaration in HTML