Added call for requestAnimationFrame. Cancelled redraw if there is a scheduled frame. Removed redundant calls to angular.element
cleanup