Updated jQuery version
Some extra logic dealing with the backspace key after a space press
General optimisations