#inputbar javascript debugged backspace functionality