fix indexjs