Fix application layout to allow JS