Less code
Merge pull request #2 from Abderrahmane-TJ/patch-1

Less code (but dropping support for IE <= 9)