Update friction-menu.js

added more documentation