js & layout