Added support for getScript so that if no script ID is provided all scripts will be returned.