worked out js for tender