patched to json node-trakt module