Added a js for defining common classes