Fix ajax pathname - set it dynamic