Make sure ajax call occurs after jQuery is loaded