now the unity web player will be loaded only if necessary
small refactor