Pre-Backbone.js implementation phase update 2

shorted the code approx. 50 lines