Modify js for Facebook upload