added js to help sites communicate