Player.js based on Player.cpp