fixing js to make dropdown go away