Java Create New Empty String Javascript Functions