Front-end code for SGD website