fix to mas_collapsable.js

made the closeOffFocus code more robust by binding to parent element, helped resolve some test issues as well