Update viewmodel.js

Added function as property argument

I'm extremely new to KO and Durandal, so I hope this check is in the right place.