Updated jsdocs on spark-api