Zoomify, Javascripts, HAML Refactored and Debugged