get rid of Javascript 1.7

for compatibility with old browsers