Minor changes to ensure compatibility with 'strict' mode.

I made these minor modifications to use the library in my project under strict mode.