JS is tested and works as required.