* js now adjusts layout as well