source code for knockout