fixed bug in ajax url generation (https ajax call on http page)