refactor google support library in js tests