jsclass package; work towards template classes