js to application layout