Move mousdown to angular-js.