rationalise require config. move app to html for clarity and simplicity