adding global variables, and included default javascript folder