Declared paintInterval variable that was causing javascript error on Chrome
Merge pull request #20 from petehayes/master

lastPaintInterval javascript variable was not defined causing painting error