Cleanup long lines an try extra try catch for IE