You should have a line break after the `{`
```
$(document).ready(function() {
  var canvas = ...
```