Strip trailing whitespace.
Prevent error which occurs if another library has extended the Array prototype.
Merge pull request #69 from Joncom/master

Make MIDI.js "play nice" when other libraries are also present.