Javascript rules added and intergration with knockout