fleshed out javascript protocol and fixed minor web issues
open on write