Ajax removal of flags