Fix paths
Use AjaxPromise for Ajax requests, rename files