Fixing ajax base url definition