Write a function to: 1. Accept a JavaScript file as a string 2. Extract function and variable names 3. Output an array of strings containing function and variable names