Calendar Hotfixes

> I have some problems with the calendar that appears on the BMEC equipment model pages.  Is the number that appears each day supposed to reflect the number of items available for reserve each day?  If so, it doesn’t always match what the Catalog page says is available based on the dates in the cart.  For instance, right now, the catalog page lists the number of Canon Rebels available from July 14-15 as 4, but when I click on the equipment model, the calendar there listed 6 as available each on July 14 and July 15, despite there not even being 6 rebels currently not checked out (there are 4).
 
> Also, if I change either the start date, end date, or the name of the patron for whom I am creating a reservation, and then click on an equipment model, the calendar no longer seems to function.  Under Availability there shows one green box, inside which is:  “NaN,” “undefined,” followed by the total number of equipment items that Bass Media has for that equipment model

* Make calendar not count deactivated items
* Make calendar count overdue items
* NaN behaviorwas caused by browser dependent parsing of a date string. I modified the date string in question to always render as 'yyyy-mm-dd' which solved the problem