Only show query select box if there are visible queries on work_packages#index
Remove inline javascript from work_packages#index