define an amd module and self init upon loading of file