Add option to toggle no-js replacement

This resolves #1385.