added main.js, res/*, and config.xml