Live vs online (using javascript)

Instead of making AJAX synchronous (a really bad way to go about things), just work with callbacks. Pass a function reference to reloadFrame() and call it in $.ajax’s success with the data it needs to parse. This stack overflow question is very helpful.