completed hw but don't understand js tests so there might be bugs