Adds tab javascript to fourth layout.