add function of setBackground and loadSettings at js