CORE-344 adding LHN JS functionality and making it in sync with window resize