Added Raphael and jQuery into the project and changed the callback mechanisms to be more jQuery "Correct".