initial setup for classical inheritance based javascript model for client-side