type js