move some window size utils to utils.js