Fixed some relations detection issues with JavaScript
Updated README.md