Fix bug in home.js when recalibrating height and left margins