Barely works but async nature of Node is really hurting my head