layout.js now returns JQuery objects