set up model, view, controller for Javascript
Merge pull request #3 from hamberguesa/AJAX

set up model, view, controller for Javascript