added index.js and embedded script directory