fix Factor type
add JS Factor type