added String to number function parseInt.