fix layout js