added caffine.js - minimal functionality