Added final Javascript project 3 functions for reference