Update pie.js

some refactoring - push/join instead of concatenating lots of HTML