Update bg.coffee