typeChar should be a pubic method to be accessible from anonymous function. commented out caching and setting url meta data (will be brought back after bug fixing)