-Added new Main class to support different method of calling Java methods via Javascript.