Tweaked fcn that blurs inputs on doc.click