Global Functions/variables

Took some functions being used in multiple files and put them in
onPar_SDK.js and use club global variables