Update main.js

possible fix for player load bug