find javascript to adapt with checkbox