You need to set up initial conditions for your case:

initial value for x1, x3,x4 etc.

What you need to do is translate those equation into EJS and add view elements for your case.
Try to do it with EJS, and write down where you do know what to do next.
Upload your ejs source and we will try to help you.