fixed javascript to transfer data
Merge pull request #5 from MissingLabel/scan-functionality

fixed javascript to transfer data