Fixed bug in executeJavaScript() that broke WeavePath API
initialization.
Also it now returns the result of executing the code.

Change-Id: I114c067da53c81f72811fed9f30c1d2be506bba9