Fix some bug in hoc js entry