auto execution contructor javascript