rules with knockoutJS