cleaned code a bit and fixed issues with old IE versions; removed autofocus from unit test