undefined errors
added images loaded script
updated get post type func
Black friday