Update graylog.js

Fixed undefined error