added pen/erase functionality to alt.html