add js to example