var style function definition should finish with semicolon.
```javascript
var functionName = function (...) {
  // ...
};
```

Please refer http://javascript.crockford.com/code.html.