Create xlayout.js

Main xlayout js file.