Made webcam.js user friendly and made code a bit lightweight.