refactor background js out for safari