Changes and bug fixes to James Friend's pcejs, in support of my own retroweb-browser project