finally got the bg-change jquery function to work