Remove global player & some methods.Add Player class

Remove global player implementation in JS. Added player clss to handle those
functionalities. Need to store and retrieve pass player details via player class. Also want to remove testing methods with secure info passing.