Returned just the exposed function within ajax.
Closed off brackets correctly