Restuctured spacing in background js