Making moment work outside the browser