Complete basic javascript client prototype: