First version

Have a working version but need to tidy js and the grid display