create minimal javascript class implementation