feat(js): implement js block