use js, change layout