Add main logic

Add main .js file to begin work of translator app.