fix background js by using alarm