Removed PHP API client and added Js client sample

Refactored code. Old PHP API client may no longer support.