separates code into pseudo javascript classes