Create script.js

Really it should be called guts.js.
Not every feature is implemented and mainly messages are not parsed correctly, yet.