Solution of js-assessment, A Javascript assignment by rmurphey