Class system for javascript.