The download link in the first post is wrong. The text has been updated to the correct bash version but the href itself still points to the applescript version.
Applescript version: http://d.pr/f/ybMT
Bash version: http://d.pr/f/9YZR
The applescript version fails to toggle bluetooth on Mavericks for me. The bash version works perfectly.