building out the js + index