fix old IE and stricter jshinting