splitting code out to own file and adding demo html
adding minimisation
adding minimisation