Fix browser compatibility and added support for elements display

correct arithmetic operations on values ​​retrieved as a string

Inview allowed use of elements with attribute display: none