variable not going to be accessed inside a jquery function? Cause I tried to create a scope variable with strings and test if it were to show in the console but it just returns