made script execution more specific to javascript
Merge pull request #46 from pennyfx/script-execution-fix

Script tag execution should be more specific to javascript