Click DOWNLOAD just below EJS simulation, you will get EJS source code.