1. have the ajax class to static.
2. format the code.