js factoring