up homework - javascript