Fixed a bug and added Gson library

- Fixed the execution of JavaScript from the java script library
-added GSON library to convert java objects to JSON