create js object, method & property