Refactoring protocolForm.js

- Spaces to tabs
- Variables