add javascript for source managment