angularjs: can't get a directive to register, works fine on the ctrl though