put everything in the teacher jsx javascript file within a document ready function