generalScripts file modified into jquery