Minor fixes

- use strict inside function
- LINT fixes