updated index & js