Create compatibility.js