Added knockout to the project.

Moved javascript logic to script file.
Used knockout to bind viewModel to view.