ywzhaiqi modified buftabs.js(https://github.com/ywzhaiqi/pentadactyl/blob/master/plugins/buftabs.js)