improve currentScript detection
improve currentScript detection

ilovezy/webshim,pablogrela/webshim,cl4rke/webshim,pablogrela/webshim,ilovezy/webshim,fashionsun/webshim,pablogrela/webshim,cl4rke/webshim,aFarkas/webshim,aFarkas/webshim,webdev1001/webshim,aFarkas/webshim,ilovezy/webshim,tomascassidy/webshim,webdev1001/webshim,cl4rke/webshim,tomascassidy/webshim,fashionsun/webshim,tomascassidy/webshim,fashionsun/webshim,webdev1001/webshim