fixed chrome 27+ issue including backwards compatibility