Indexed javascript list