Move clkao from battle.js to separate file.
Signed-off-by: Rack Lin <racklin@gmail.com>