Removed console.logs and fixed jumping of width while scrolling in Firefox