Update scripts.js

Removed psudeo as it's not used, and closed line 25 and 27