Slice attribute instead of splice.

Javascript strings are immutable so they can't be spliced. I missed that on adding the loop.

PS. The package.js and bower.json versions mismatch from tags. They should be updated to match the tag and the tag should probably be bumped up so as to update the non-working 0.0.9 installs out there.