Fix nested list JS code execution

See discussion in issue #574