more small adjustments to javascript and index trying to set up side ba