Modified code to meet w3c standarts