Rehauled JS to comply with Backbone conventions