Updates to javascript executor and tests