returning JS to previous but with longer timeout