fix javascript tests (Firefox 20, Safari 6, Chrome 25)