added jquery fix to make jquery work in commonjs/browser environment