Simplified the example and got rid of cross origin issue

Change-Id: I4a9952470b6604efc0bc21c30baa920479733ca7