added Angular tricks for IE <9 support