Update modality.js

Removed a few lines and changed some variable names to make the document smaller.