Added global "use strict";

Hello,

Thank you for your work.
Today I tried to use your solution in one of our projects.
But it didn't work, because we use javascript strict mode in it.
When I do some changes, I organize it in pull request for your consideration.