Array prototype modification breaks generateBar()

Appears that if you modify the prototype of Array it fails to build the bar correctly in generateBar().

I've modified the test to use beforeEach() to reset the items on each run, updated the reset test, and added a test that does a basic length check.

Unfortunately these commits are against the previous formatting change commit.

Anyhow, here's how I solved the issue I was having, feel free to discard if you'd like.