How can I check my code?

You can sanity check your code with the JS Fiddle in-browser demo:

https://jsfiddle.net/1apfk634/embedded/result,js,html/dark/?username=dfuse_io