Fix syntax error

In the previous commits, the following line was not closed causing a syntax error:

```javascript
if (pos % 1 == 0) {
```