Revert "Javascript updates"

This reverts commit 23958d794351a2ea31189de7aeef49af59ecae55.
Revert "Revert "Javascript updates""

This reverts commit ec36f48312dd272b44c141dff4394bc7fd982e61.
Correcting spelling errors