fix layout and js 1.0