merging phong.js further