Use local js only in debug