Documenting the Javascript a bit