Fix server.js example

Asset#isCompiled was removed once API was switched to be synchronuous