adds collisionFactory script to jade file