move player core to js folder