ajax and fancy box commits