[TIMOB-13153] added Ti javascript property to get the current script

Original PR: #3377