Changed title on index.html and tidied up some js-code.