Use strict, basic style changes, missing semicolon, missing var declaration