Fixed undefined errors so it's compatiable within the browser
Merge branch 'refs/heads/sequencer'