use strict mode
Fix some bugs in the web interface