Move Delete Logic to Background JS