Adjust layout when js is active