Basic working modular generation of webpage. Complexities ahead :)