merge gist:9793327, and fixed/tested on chrome and safari

safari don't support focus/blur on button tag, and on chrome, both click and focus were fired.