move common configuration stuff to GLConfig.js
update