fix style to make it more nodejs-like