Implement JS-1 and JS-2