swap up and down
.c file is working. js and html still need to be fixed.