Removed hard coded widths in core.js

I've removed the hard coded values from core.js for background resizing.