Added option to use URL instead of script's source