Update scripts.js

This is the new "should be" working java script code that gets the purposes of the federation sites