Wrote more UI Javascript