Hooked up customer types to javascript