Updated supervisor.js

Formatting and variable changes