Request ajax from backend and frontend