index and javascripts