Dots in javascript variable names make jQuery crash, backport #1225