Please move this code [1] below this one so you can use the var windowWidth. Thanks

[1] https://github.com/RudyLu/gaia/blob/8cf431ec3f18379b2a64e24899b6dc5053c22ba9/apps/homescreen/js/grid.js#L24