javascript object oriented based on wordpress admin appearance