See #1352 - test js approach