We can probably make the callback optional here as well and add

```
        // Set a default callback function in case no callback function has been provided
        callback = callback || function() {};
```

in the function