More deduplication

1. Change getBarcode to use getBarcodeURL instead of duplicating code
2. Add some semicolons which didn't make their way into the last commit
Merge pull request #8 from Sophira/more-deduplication

More deduplication