fix undefined "script"
Merge pull request #7 from juliangruber/fix/undefined-script

fix undefined "script"