Javascript Passing This To Function Optimally The Body