went back to ajax
added some more dependencies