adding js scripts that shows page when it's fully loaded