Monster base class, via some javascript wrangling