Require_once isn't considered a function and should therefore not be called as one. Move Cups.js log file to CupsAccess.js