JavaScript implementation of BaseParadigm