Incorporated some JS.  Added a bash script that randomly returns a 0 or 1.