extending the time javascript has to execute to five seconds