New to JS. Here are my solutions for coderbyte