move cache.js to www/js dir