added userdata and favorites js files to serial.php