fixing js example and adding expects alias