reduced html files needed with some javascript