Variable 'result' should be defined in strict mode