Minor bugfixes
Fix bounding-client-rect on Safari and eliminate hack