NodeJs draw machine generator