javascript for section selection