Bug on the Decrement a Number with JS

Solved! 20 character limit.