create player obj once DOM elemenets have loaded