fixed getRectangle method in Helper class for Chrome