gitignore and some style changes as well as api endpoint
merged indes.js