Added JavaScript timeout

Thanks, Kyle