use script-onload component
Merge pull request #4 from segmentio/use/script-onload

use script-onload component
Automatically rewritten for npm.