Remove useless commented code.
Fix the volatile detection.
First working version of js interface.