Simple JavaScript extended type checking that can be extended with custom types