Add compatibility.js
Merge pull request #39 from adityab/compatibility

Add compatibility.js