fix closest method for IE8, add grunt minification