Add $createObject to doc

@jacobawenger