Javascript Class & Some Compent