fix js compile bug