options earnings on node js