near to complete js client: i would insert jsClient content in head
after javascript declarations