Complete add and sub product num js function.