I'm trying to create an element using JavaScript in place where the script was initialized. 

I need to be able to just call a function for the element to appear just after the `<script>` tag in my HTML document.

I tried this code but I don't know how to actually create an element.

```js
function createElement() {

  var container = document.createElement('div');
 container.setAttribute("class", 'someDiv');
 document.createElement(container);

}
```

```css
.someDiv {
  height: 100px;
  width: 100px;
  background-color: gold;
}
```

```html
<body>

<script>
  createElement("div", "someDiv");
</script>

</body>
```