My own JavaScript class base