Remove some cruft from JavaScript code

Remove obsolete statements which raised errors; remove useless console.log
statements and fix minor CSS syntax errors.