Change the javascript path
Add multiple layout support