JavaScript class with Crystal