Import code from node knockout