Lightweight utility module for creating javascript classes