added js to layout