Fix broken key checking
Declare browser environment
Disable globalstrict