modified js 3