update getCurrentScript