Added FPS constant.
Formatted code.
Fixed warnings.
Added 'playing' EventListener to localVideo.