Mini nodejs module to await promise synchronously