js changes and layouts