fixed the topleft.js shim for Chrome / webkit