js flat