reorganize js; rm onclick in unit_selection.html