ecmascript: Add some missing helpers

entityDecode
queryStringSplit
pathEscape
paramEscape

Fixes #2294