Player.js based on Player.cpp

For javascript funs :)