Green screen effect with HTML5 and JavaScript