Fixed API loading and strict mode definition