Added javascript part