swapped jsx code for js syntax