change the way angular module is defined (fixes #8)