Modifying the seamless.js to resize correctly.