js Common API fix