First attempt at file sort app in nodejs