fix vv
simplify js snippets