projection.js (Projection function)