add js to layout