Support for CORS added. Little bug fixed

Support to send the parameter "withCredentials" was added to support CORS queries.
A call to ms.input.val() was changed for a call of ms.getRawValue(), to avoid sending a query to the server with the text of the "empyText" parameter when magicsuggest is rendered.