Replace $ with document.id()
replaced more $ with document.id()
fixed wrong commit
Update ContaoMap.php

Added missing breaces for function getInstance()
Merge pull request #2 from davidmaack/contao3

Added missing brackets and optimised JS for better compatibility.