js edit

added constructors