Code optimization

BackgroundJS