My LogiX is Undeniable.
// This is how to Get the current entity name using javascript in CRM 2011
// Get current entity name
var entity = Xrm.Page.data.entity.getEntityName();