moving jquery init from index.html to base.html