Issue #4 make Ajax requests synchronous