Fix jquery timeout=500 bug