dynamic center()

Centers horizontally and vertically if not already positioned. This also sets position:fixed.

Source

center() =>
    jsElement.callMethod('center', []);