Continuing to fix javascript errors
Added inputVal length for the last operator