JavaScript Type Getter