simple & putty js class implement