Update script.js

If inheriting from EventEmitter, must call parent constructor