introduce main javascript, as well as window resize listener, which currently resizes certain containers according to their ratio