diff --git a/README.md b/README.md
index 446af12..39f5a13 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,5 @@
# Doodle3D-Slicer
JavaScript gcode slicer, Intended to use with the Doodle3D WiFi-Box
-
# Usage
```javascript
@@ -9,20 +8,17 @@ import PRINTER_SETTINGS from 'settings/printer_settings.json!';
import USER_SETTINGS from 'settings/user_settings.json!';
import * as SLICER from 'Doodle3D/Doodle3d-Slicer';
-setTimeout(() => {
- var settings = new SLICER.Settings();
- settings.updateConfig(PRINTER_SETTINGS["ultimaker2go"]);
- settings.updateConfig(USER_SETTINGS);
+var settings = new SLICER.Settings();
+settings.updateConfig(PRINTER_SETTINGS["ultimaker2go"]);
+settings.updateConfig(USER_SETTINGS);
- var geometry = new THREE.TorusGeometry(20, 10, 30, 30);
+var geometry = new THREE.TorusGeometry(20, 10, 30, 30);
- var slicer = new SLICER.Slicer();
- //var slicer = new SLICER.SlicerWorker();
+var slicer = new SLICER.Slicer();
- slicer.setGeometry(geometry);
- slicer.onfinish = function (gCode) {
- document.getElementById('gcode').innerHTML = gCode.replace(/(?:\r\n|\r|\n)/g, '
');
- };
- slicer.slice(settings);
-});
+slicer.setGeometry(geometry);
+slicer.onfinish = function (gCode) {
+ document.getElementById('gcode').innerHTML = gCode.replace(/(?:\r\n|\r|\n)/g, '
');
+};
+slicer.slice(settings);
```