adding general javascript classes