design index and edit js