Update index.js

Added missing prototype for getting title from api.
Merge pull request #7 from CoderCookE/patch-1

Update index.js