Fix async error in index.js

thing.save() is an async method. We should only return a result once the callback is fired.