implemented javascript component