fit portrait for js