Move template code from PHP to template
Updates to bbvideo javascript