Mozilla edges closer to replacing Flash with JavaScript