Modifies code to be conform with w3c