Added onUpdate event for inputBuffer object (http://stackoverflow.com/questions/4287108/can-i-create-my-own-event-in-javascript-for-an-object-i-created). Identified methods in which the onUpdate event occurs. Methods clear() and reset() are implemented.