Cleaning up JavaScript
Sample is now working on WildFly