added very ugly painting on html5 canvas