Removed all unused variables within Main JS