Corrected home page scripts