Cleaning nodejs code