Javascript Prototype to facilitate responsive dynamic manipulation of the DOM via callback functions