adding javascript that checks all non optional questions have at least one ticked answer