Prototyped index.js