I changed the subject for you.
The code you just posted won't work at all, because that
is still in the showLoading function, which causes a syntax error.
Please use your browser's debugging tools — it can be hard to get a piece of code working if it's being tripped up by unrecognized syntax errors.
If you want to show the content when the loading bar hides, you will have to call the code responsible for showing the content from the hideLoading function.
Edit: And, seeing the whole code, it's obvious that you can't handle the loading and screen elements in the same variable, because they are not supposed to behave the same. You will have to put the element with the .screen class into its own variable.