can u put this into directive? without any special functionality, just to init this via directive so there is no jquery in controller..