Should be space after "if"
<code>if(settings.ajaxVar)</code> => <code>if (settings.ajaxVar)</code>