fixing loading screen to work with webgl renderer