Update EssentialsCore.js

This wasn't tested too... also it needs to be in an anonyme function...