Fixes JSONStream undefined

Serious bug, this fixes it.