initi js prototype