jslint frontend, rename backend script.

Lint the front-end script.
Rename paintchat.php to backend.php (paintchat is what this kind of
thing was called in the late 1990s)
Fix clear canvas command

Fixed the clear canvas command; SQLite doesn't use truncate, but
unconditional delete.