title added to the java script