JavaScript code for the Parser added to be convert into Java code.