Fix for elementUnderMouse in the dash

Slipped into the last commit by mistake. Fixed up the formatting/vars.
This works around the offset issues with dashboard modules. jQuery
offset uses the document as the base, rather than the nearest parent,
which bypasses the relatively positioned `RESDashboardComponents` and
gives us the desired x/y values.