Made demo work with node and in browser