Fix ajax class functions and includes