add friction.js