Removed hardcoded values from view model. Moved part of logic from data bindings to view model. Implemented event handling via jquery.