remove test in prepare function + manage HTMLElement in function drawTo
remove useless call to function refreshCssClass()
use HTMLElement object for range