Update to use compileClient

The `client` option is deprecated in favour of using the method `compileClient()`.
Merge pull request #11 from fsbdev/patch-1

Update to use compileClient