Some workaround to allow AJAX to load local resources