Highschool Math Education with JavaScript

I have been talking with some of my coworkers, and a highschool math teacher friend of mine about developing a math curriculum for highschoolers based on JavaScript. The premise is that JavaScript programming is cool because your can build web applications with it, and implementing algorithms with JavaScript functions is more meaningful then memorizing textbook algorithms.

I fleshed out the idea with them on the Bocoup Weblog:

http://bocoup.com/blog/long-division-in-javascript