connect front and back ends for x-by-y

Fix jslint errors
Fix ajax/querystring var

Change-Id: I971e61fffcc0d10d065cd1e0526b4a7d67e1f8c0