added EWD.js and dir restructure