Edited code, add <head> and <html> tags