diff --git a/CompileJS.sh b/CompileJS.sh
index 83abacc..4d6d4ca 100755
--- a/CompileJS.sh
+++ b/CompileJS.sh
@@ -1,3 +1,3 @@
-#!/bin/sh
-chmod +x gradlew
+#!/bin/sh
+chmod +x gradlew
./gradlew generateJavascript
\ No newline at end of file
diff --git a/build.gradle b/build.gradle
index 5436ca9..80fc672 100755
--- a/build.gradle
+++ b/build.gradle
@@ -26,7 +26,7 @@ teavm.js {
obfuscated = true
sourceMap = true
targetFileName = "../classes.js"
- // optimization = OptimizationLevel.ADVANCED
+ optimization = org.teavm.gradle.api.OptimizationLevel.AGGRESSIVE
outOfProcess = false
fastGlobalAnalysis = false
processMemory = 512
diff --git a/desktopRuntime/eclipseProject/.classpath b/desktopRuntime/eclipseProject/.classpath
index 6bbb5c5..210b72d 100755
--- a/desktopRuntime/eclipseProject/.classpath
+++ b/desktopRuntime/eclipseProject/.classpath
@@ -17,5 +17,6 @@