Switched clientHeight to innerHeight