Javascript protocol

Here's the JAvacsript fix