clean up references.js file to remove references to non-existent js files.