Necessary JS corrections to have a fully functional RWD theme when ajax enabled