add missing scope
simplify js