AssetForm read only display

Hides all the form inputs from AssetForm when we are in read only mode, and shows text paragraphs and lists instead.
Double-check with other js code. Which is the declaration style used:
    var
        element,
        elementType

or

    var element;
    var elementType;