Ajax: remove event dependency from the ajax module

Ref 4e7f34f6296111f7f91d621397dfb02c6bf4c41f