Missing function declaration for knockout.

The destroy(function() {...}) was missing inside knockout declarations.