localize ajax url for front-end