Increased timeout on JS test to improve reliability on iOS 6 and Safari

#2423