Added player initialization in js