refactored ajax call

* the success callback and error callbacks are named functions
extracted a View module

* created it to make the app more MVC and sustainable
move resetForm function to View
rename assignStatusArea to updateStatusArea

* more accurate, make more reusable in other contexts
Merge pull request #2 from cpkenn09y/refactoring

Refactoring