JavaScript class library