added some js for index map