The Javascript source code is available for download at GitHub.
Javascript Source Code via GitHub
The tidal simulation applet is part of the Javascript-Toys repository at GitHub. In order to run it a HTML 5 capable browser is needed. I recommend using a Javascript Debugger like Firebug (for Firefox Browser) in order to play with the code.
You might also like: