Changes to make the JS code relocatable (phase 1)
Merge pull request #75 from markewallace/RelocatableJavaScript

Changes to make the JS code relocatable (phase 1)