A Class implementation for Javascript