added ratchet.js file