Added Main Controller, barcodescanner.js