move out collection js
warn on collections with no fields