Updated version without require.d.ts reference.