Implemented dajax and moved models to media rather than static