add js to select template