Fix script being run before stories were fully loaded, fixes #6