Added Pseudocode to my JavaScript file

Pseudocode