placed comments in javascript & added slide animations when scanning QR code