change jquery function

@rbran100
1. the real time data is refreshed in the stats.js, which means the variable_set() is working
2. change the jquery to make it refresh in the home page