Make sure script.parentNode exists before removing the script element
Merge pull request #12 from azer/master

Make sure script.parentNode exists before removing the script element