added local prototype.js file
formatting demo.html
small correction
changed sample constraint
reformulate testRecalculateForTextInput as its html equivalent