Update script.js

fixed bug in linearRegex. can now handle linear terms with constants >= 10 (i.e. y = 17x - 3)