Tidied documentation in base.js
Added radix to parseInt
Do not attempt to replaceOriginal unless this.target is not an input