updated the index and js and added jp_vars