removed class definitions from doc ready