Added onblur and fixed quote escaping. Closes #228  closes #232