Please visit the javascript enhanced version of this recipe.