actually, what I found was, sub (-) operation was working fine with string objects
"3" -1 = 2.. so, I didnt do it!

changed it anyway to use parseInt