moved javascript to app.js, added call to commishoner api