Cleaned for JSLint, Added PinIndex

- JSLint errors all cleaned up. Yay.
- PinIndex added to keep track of pins.