PhoneGap: Finished building automatic scanning