Enable JS strict mode

Fixes #285.