javascript library for simulating load events on ajax request completion