Added code for Bare Bones MVC in JavaScript