Add JavaScript links to layout.mote.