completed js1 exercise