remove usage of innerHeight & use jquery instead