Fix coding style and add prototype.js test.