fix layout for js