Simple javascript client