included onConnect and onDisconnect callbacks
updating html template for new flashcam.js functions