More checking

Minor tinkering. Added Comments to event.js. More checking for bad input or null values. Need to fix thumbnails for keyword search and extensions page. Need to fix a problem created last update that prevents removing keyword categories from list.