Update percentage.js

Fixed issue with using 0 for decimal value.