HPCC-8030 JavaScript language support in ECL

Clean up code.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>