Added IE8 support, autoformating (remove mixed spaces & tabs)

IE 8 is not able to handle a ```<button>``` element as a submit button and crashed due to this issue. This is now fixed  (c.f. new lines 41,42). 
IE 8 also does not know about console, the first lines make sure that it does not crash due to this problem either.
The rest is just autoformat (better indenting, no more mixed spaces & tabs).
Hope you like it!