popup ref to clear js