Implemented ajax queue (based on https://github.com/gnarf37/jquery-ajaxQueue)