fixed index javascript reference