fix middle click for angularjs 1.0.5