Added api to get script file