javaScript: Get position in viewport coordinates