class for javascript computer language