Some useful knockout JS codes