mainly reorganize wsdaenimScript.js, fix core, setup and script