Fix comments from @hnrch02

Remove semi colon
Remove temporary variable to hold CSS position
Remove extend and explicitly construct top and left elements
Use “is” to know if the viewport is a ‘body’