update index to use one js file