added javascript helper to find current layer context
Merge pull request #7 from Financial-Times/js-util

added javascript helper to find current layer context