working version

1. Replace three.js with debug version
2. bugfix