Fixed bug with addition

javascript dynamic typing causes issues