some refactoring of js. adding a favicon.