Added checking that knockout JavaScript was available before trying to
use it.