Update javascript for coding standards
Only send an ajax request if a relevant item exists on the page
If undefined runCache is, yes, mmmm. Face Vader you must. Yes, mmmm