Fixed resizeToBrowser in constants.js