I don't think there is a problem with your code if you successfully run them in your pc!
It must be the way you uploaded then in your web server.. When uploading your file, you should make sure you have all the folder that exist in y
our pc uploaded to the web server also.
I mean, If you put your " GuestRegistered.html" in a folder named myFolder in your pc, you should create a folder named myFolder in your web server!
Does that make sense?