Battle with js and put