First attempt

Wrote a test code and it worked on a regular browser. Need to test it on
the phone.