fixing css bug (missing semicolon), using standard method for getting window width (previous broke firefox), cleaning up background selector