Initial code dump

I don't know javascript and I have modified several things through the
customised bootstrap css. As it is it works well, but could be tidier in
code etc.