JavaScript solution to the Trello exercise required to apply for a job