Delete extra tailing lines
Add vim modeline
Minor style fixes
Fix issue with scheme relative urls
Use correct type of comments for vim modeline
Remove alert for Jason
Add handler for when the kb is changed
Improve input validation
Use Underscore.js in processInput
Refactor the processInput function

After refactoring, the code is more clear and much easier to modify in
the future. It also makes sure to separate the GUI code from the Chatbot
code. It might be prudent to make actual separate files to further
enforce this SoC.