Simple Function Program In Javascript Object To String In Java