added the more handlisng in js processing