registerMousemoveListener = function() {

  $tm.mouse = {};

  var fn = function(evt) { $tm.mouse = evt; };
  window.addEventListener('mousemove', fn, false);

}
Saves the last mousemove event under $tm.mouse