Blur addTag working with jquery.ui.autocomplete
close autocomplete when a tag is entered by press enter or tag separator

lots of jshint warnings fixed.


Signed-off-by: Antonio Fernández Porrúa <antonio@pykiss.com>