delete local player js and use api