lost variable declaration broke script in strict mode