JS style updates, reconfigured require in client/ and test/ to reduce config repetition.