Draw and erase both working as jQuery plugin