(Better) JavaScript Type Detection