Filip's code of working with seatview in js+html