reworking this app as a node project