Make chronological UIDs.
Make the eraser erase with a single click
Remove unused variable. Thanks to jshit.
Replace spaces by tabs. Thanks to jshit.
Add a 'var' statement. The variable 'elem' was leaked to the global namespace. Thanks to jshit.