Change to haml and bind event handlers on uploader