Fixed a bug with fromValue on line 652

fromValue would be NaN on some small changes.
fromValue was being added as a string, not a number.
This patch solves this issue.
I haven't updated the minified version.