Lab 2: Creating a User-defined Function in JavaScript