Configuring javascript and xml file