jsSparkClient: node and angular client use same code base